package com.yanqu.road.server.timer.rankunionwar;

import com.yanqu.road.server.manager.activity.rankunionwar.CrossRankUnionWarMgr;
import com.yanqu.road.server.manager.activity.rankunionwar.activity.CrossRankUnionWarActivity;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 *
 */
public class CrossRankUnionWarTimerTask extends GeneralTask {

    private long checkUnionJoinTime = 0L;

    @Override
    public void doRun() {
        long now = System.currentTimeMillis();

        for (CrossRankUnionWarActivity activity : CrossRankUnionWarMgr.getActivityMap().values()) {
            try {
                activity.logicMain();
                activity.printTask();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

    }
}
